
func void Equip_1H_10()
{
	if(Npc_IsPlayer(self))
	{
		B_AddFightSkill(self,NPC_TALENT_1H,Waffenbonus_10);
		MELEEWEAPONINDEX = 3;
	};
};

func void UnEquip_1H_10()
{
	if(Npc_IsPlayer(self))
	{
		B_AddFightSkill(self,NPC_TALENT_1H,-Waffenbonus_10);
		MELEEWEAPONINDEX = 0;
	};
};

func void equip_itmw_diego_degen()
{
	B_AddFightSkill(self,NPC_TALENT_1H,WAFFENBONUS_ITMW_DIEGO_DEGEN);
	MELEEWEAPONINDEX = 3;
};

func void unequip_itmw_diego_degen()
{
	B_AddFightSkill(self,NPC_TALENT_1H,-WAFFENBONUS_ITMW_DIEGO_DEGEN);
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_gorn_axt()
{
	B_AddFightSkill(self,NPC_TALENT_2H,WAFFENBONUS_ITMW_GORN_AXT);
	MELEEWEAPONINDEX = 6;
};

func void unequip_itmw_gorn_axt()
{
	B_AddFightSkill(self,NPC_TALENT_2H,-WAFFENBONUS_ITMW_GORN_AXT);
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_lee_axt()
{
	B_AddFightSkill(self,NPC_TALENT_2H,WAFFENBONUS_ITMW_LEE_AXT);
	MELEEWEAPONINDEX = 6;
};

func void unequip_itmw_lee_axt()
{
	B_AddFightSkill(self,NPC_TALENT_2H,-WAFFENBONUS_ITMW_LEE_AXT);
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_kord_axt()
{
	B_AddFightSkill(self,NPC_TALENT_1H,WAFFENBONUS_ITMW_KORD_AXT);
	MELEEWEAPONINDEX = 3;
};

func void unequip_itmw_kord_axt()
{
	B_AddFightSkill(self,NPC_TALENT_1H,-WAFFENBONUS_ITMW_KORD_AXT);
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_lares_axt()
{
	B_AddFightSkill(self,NPC_TALENT_1H,WAFFENBONUS_ITMW_LARES_AXT);
	MELEEWEAPONINDEX = 3;
};

func void unequip_itmw_lares_axt()
{
	B_AddFightSkill(self,NPC_TALENT_1H,-WAFFENBONUS_ITMW_LARES_AXT);
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_torlof_axt()
{
	B_AddFightSkill(self,NPC_TALENT_2H,WAFFENBONUS_ITMW_TORLOF_AXT);
	MELEEWEAPONINDEX = 5;
};

func void unequip_itmw_torlof_axt()
{
	B_AddFightSkill(self,NPC_TALENT_2H,-WAFFENBONUS_ITMW_TORLOF_AXT);
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_sentenca_sword()
{
	B_AddFightSkill(self,NPC_TALENT_1H,WAFFENBONUS_ITMW_SENTENCA_SWORD);
	MELEEWEAPONINDEX = 4;
};

func void unequip_itmw_sentenca_sword()
{
	B_AddFightSkill(self,NPC_TALENT_1H,-WAFFENBONUS_ITMW_SENTENCA_SWORD);
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_wolf_waffer()
{
	B_AddFightSkill(self,NPC_TALENT_1H,WAFFENBONUS_ITMW_WOLF_WAFFER);
	MELEEWEAPONINDEX = 3;
};

func void unequip_itmw_wolf_waffer()
{
	B_AddFightSkill(self,NPC_TALENT_1H,-WAFFENBONUS_ITMW_WOLF_WAFFER);
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_lester_sword()
{
	B_AddFightSkill(self,NPC_TALENT_1H,WAFFENBONUS_ITMW_LESTER_SWORD);
	MELEEWEAPONINDEX = 3;
};

func void unequip_itmw_lester_sword()
{
	B_AddFightSkill(self,NPC_TALENT_1H,-WAFFENBONUS_ITMW_LESTER_SWORD);
	MELEEWEAPONINDEX = 0;
};

func void equip_2h_xaradrim()
{
	if(Npc_IsPlayer(self))
	{
		if(BEHARADRIM == TRUE)
		{
			Wld_PlayEffect("spellFX_LIGHTSTAR_BLUE",hero,hero,0,0,0,FALSE);
			Snd_Play("SFX_HealObsession");
			MELEEWEAPONINDEX = 6;
		}
		else
		{
			AI_Wait(hero,3);
			AI_PlayAni(self,"S_FIRE_VICTIM");
			Wld_PlayEffect("VOB_MAGICBURN",hero,hero,0,0,0,FALSE);
			B_Say(self,self,"$Dead");
			AI_StopFX(self,"VOB_MAGICBURN");
			Npc_ChangeAttribute(self,ATR_HITPOINTS,-self.attribute[ATR_HITPOINTS_MAX]);
			Npc_StopAni(self,"S_FIRE_VICTIM");
			MELEEWEAPONINDEX = 0;
		};
	};
};

func void unequip_2h_xaradrim()
{
	MELEEWEAPONINDEX = 0;
};

func void equip_1h_xaradrim()
{
	if(Npc_IsPlayer(self))
	{
		if(BEHARADRIM == TRUE)
		{
			Wld_PlayEffect("spellFX_LIGHTSTAR_BLUE",hero,hero,0,0,0,FALSE);
			Snd_Play("SFX_HealObsession");
			MELEEWEAPONINDEX = 4;
		}
		else
		{
			AI_Wait(hero,3);
			AI_PlayAni(self,"S_FIRE_VICTIM");
			Wld_PlayEffect("VOB_MAGICBURN",hero,hero,0,0,0,FALSE);
			B_Say(self,self,"$Dead");
			AI_StopFX(self,"VOB_MAGICBURN");
			Npc_ChangeAttribute(self,ATR_HITPOINTS,-self.attribute[ATR_HITPOINTS_MAX]);
			Npc_StopAni(self,"S_FIRE_VICTIM");
			MELEEWEAPONINDEX = 0;
		};
	};
};

func void unequip_1h_xaradrim()
{
	MELEEWEAPONINDEX = 0;
};

func void equip_ulumulu()
{
	ULUMULUISEQUIP = TRUE;
	MELEEWEAPONINDEX = 4;
};

func void unequip_ulumulu()
{
	ULUMULUISEQUIP = FALSE;
	MELEEWEAPONINDEX = 0;
};

func void equip_blessed_1h()
{
	if(Npc_IsPlayer(self))
	{
		if(self.guild != GIL_PAL)
		{
			AI_Wait(self,3);
			AI_PlayAni(self,"S_FIRE_VICTIM");
			Wld_PlayEffect("VOB_MAGICBURN",self,self,0,0,0,FALSE);
			B_Say(self,self,"$Dead");
			AI_StopFX(self,"VOB_MAGICBURN");
			Npc_ChangeAttribute(self,ATR_HITPOINTS,-self.attribute[ATR_HITPOINTS_MAX]);
			Npc_StopAni(self,"S_FIRE_VICTIM");
			MELEEWEAPONINDEX = 0;
		}
		else
		{
			MELEEWEAPONINDEX = 4;
		};
	};
};

func void unequip_blessed_1h()
{
	MELEEWEAPONINDEX = 0;
};

func void equip_blessed_2h()
{
	if(Npc_IsPlayer(self))
	{
		if(self.guild != GIL_PAL)
		{
			AI_Wait(self,3);
			AI_PlayAni(self,"S_FIRE_VICTIM");
			Wld_PlayEffect("VOB_MAGICBURN",self,self,0,0,0,FALSE);
			B_Say(self,self,"$Dead");
			AI_StopFX(self,"VOB_MAGICBURN");
			Npc_ChangeAttribute(self,ATR_HITPOINTS,-self.attribute[ATR_HITPOINTS_MAX]);
			Npc_StopAni(self,"S_FIRE_VICTIM");
			MELEEWEAPONINDEX = 0;
		}
		else
		{
			MELEEWEAPONINDEX = 6;
		};
	};
};

func void unequip_blessed_2h()
{
	MELEEWEAPONINDEX = 0;
};

func void equip_itmw_abigeilspage()
{
	if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(pir_6136_abigeil))
	{
		Snd_Play("SFX_HealObsession");
		B_AddFightSkill(self,NPC_TALENT_1H,20);
		MELEEWEAPONINDEX = 2;
	}
	else
	{
		AI_Wait(self,3);
		AI_PlayAni(self,"S_FIRE_VICTIM");
		Wld_PlayEffect("VOB_MAGICBURN",self,self,0,0,0,FALSE);
		B_Say(self,self,"$Dead");
		AI_StopFX(self,"VOB_MAGICBURN");
		Npc_ChangeAttribute(self,ATR_HITPOINTS,-self.attribute[ATR_HITPOINTS_MAX]);
		Npc_StopAni(self,"S_FIRE_VICTIM");
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_itmw_abigeilspage()
{
	if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(pir_6136_abigeil))
	{
		Snd_Play("SFX_HealObsession");
		B_AddFightSkill(self,NPC_TALENT_1H,-20);
		MELEEWEAPONINDEX = 0;
	}
	else
	{
		AI_Wait(self,3);
		AI_PlayAni(self,"S_FIRE_VICTIM");
		Wld_PlayEffect("VOB_MAGICBURN",self,self,0,0,0,FALSE);
		B_Say(self,self,"$Dead");
		AI_StopFX(self,"VOB_MAGICBURN");
		Npc_ChangeAttribute(self,ATR_HITPOINTS,-self.attribute[ATR_HITPOINTS_MAX]);
		Npc_StopAni(self,"S_FIRE_VICTIM");
		MELEEWEAPONINDEX = 0;
	};
};

func void equip_zauberstab_kdf()
{
	if(Npc_IsPlayer(self))
	{
		if(hero.guild == GIL_KDF)
		{
			Npc_ChangeAttribute(hero,ATR_MANA_MAX,30);
			Npc_ChangeAttribute(hero,ATR_MANA,30);
			MELEEWEAPONINDEX = 2;
		}
		else
		{
			AI_PlayAni(hero,"S_FIRE_VICTIM");
			Wld_PlayEffect("VOB_MAGICBURN",hero,hero,0,0,0,FALSE);
			B_Say(hero,hero,"$Dead");
			AI_StopFX(hero,"VOB_MAGICBURN");
			Npc_ChangeAttribute(hero,ATR_HITPOINTS,-hero.attribute[ATR_HITPOINTS_MAX]);
			Npc_StopAni(hero,"S_FIRE_VICTIM");
			MELEEWEAPONINDEX = 0;
		};
	};
};

func void unequip_zauberstab_kdf()
{
	if(Npc_IsPlayer(self))
	{
		Npc_ChangeAttribute(hero,ATR_MANA_MAX,-30);
		if(hero.attribute[ATR_MANA] >= 30)
		{
			Npc_ChangeAttribute(hero,ATR_MANA,-30);
		}
		else
		{
			hero.attribute[ATR_MANA] = 0;
		};
		MELEEWEAPONINDEX = 0;
	};
};

func void equip_zauberstab_kdw()
{
	if(Npc_IsPlayer(self))
	{
		if(hero.guild == GIL_KDW)
		{
			Npc_ChangeAttribute(hero,ATR_MANA_MAX,20);
			Npc_ChangeAttribute(hero,ATR_MANA,20);
			MELEEWEAPONINDEX = 2;
		}
		else
		{
			Wld_PlayEffect("spellFX_BELIARSRAGE",hero,hero,0,0,0,FALSE);
			B_Say(hero,hero,"$Dead");
			Npc_ChangeAttribute(hero,ATR_HITPOINTS,-hero.attribute[ATR_HITPOINTS_MAX]);
			MELEEWEAPONINDEX = 0;
		};
	};
};

func void unequip_zauberstab_kdw()
{
	if(Npc_IsPlayer(self))
	{
		Npc_ChangeAttribute(hero,ATR_MANA_MAX,-20);
		if(hero.attribute[ATR_MANA] >= 20)
		{
			Npc_ChangeAttribute(hero,ATR_MANA,-20);
		}
		else
		{
			hero.attribute[ATR_MANA] = 0;
		};
		MELEEWEAPONINDEX = 0;
	};
};

func void equip_zauberstab_kdm()
{
	if(Npc_IsPlayer(self))
	{
		if(hero.guild == GIL_KDM)
		{
			Npc_ChangeAttribute(hero,ATR_MANA_MAX,25);
			Npc_ChangeAttribute(hero,ATR_MANA,25);
			MELEEWEAPONINDEX = 2;
		}
		else
		{
			Wld_PlayEffect("SPELLFX_SKULL_SPREAD",hero,hero,0,0,0,FALSE);
			B_Say(hero,hero,"$Dead");
			Npc_ChangeAttribute(hero,ATR_HITPOINTS,-hero.attribute[ATR_HITPOINTS_MAX]);
			MELEEWEAPONINDEX = 0;
		};
	};
};

func void unequip_zauberstab_kdm()
{
	if(Npc_IsPlayer(self))
	{
		Npc_ChangeAttribute(hero,ATR_MANA_MAX,-25);
		if(hero.attribute[ATR_MANA] >= 25)
		{
			Npc_ChangeAttribute(hero,ATR_MANA,-25);
		}
		else
		{
			hero.attribute[ATR_MANA] = 0;
		};
		MELEEWEAPONINDEX = 0;
	};
};

func void equip_zauberstab_gur()
{
	if(Npc_IsPlayer(self))
	{
		if(hero.guild == GIL_GUR)
		{
			Npc_ChangeAttribute(hero,ATR_MANA_MAX,35);
			Npc_ChangeAttribute(hero,ATR_MANA,35);
			MELEEWEAPONINDEX = 2;
		}
		else
		{
			Wld_PlayEffect("SPELLFX_MASTEROFDISASTER_COLLIDE",hero,hero,0,0,0,FALSE);
			B_Say(hero,hero,"$Dead");
			Npc_ChangeAttribute(hero,ATR_HITPOINTS,-hero.attribute[ATR_HITPOINTS_MAX]);
			MELEEWEAPONINDEX = 0;
		};
	};
};

func void unequip_zauberstab_gur()
{
	if(Npc_IsPlayer(self))
	{
		Npc_ChangeAttribute(hero,ATR_MANA_MAX,-35);
		if(hero.attribute[ATR_MANA] >= 35)
		{
			Npc_ChangeAttribute(hero,ATR_MANA,-35);
		}
		else
		{
			hero.attribute[ATR_MANA] = 0;
		};
		MELEEWEAPONINDEX = 0;
	};
};

func void equip_bow_01()
{
	if(Npc_IsPlayer(self))
	{
		B_AddFightSkill(self,NPC_TALENT_BOW,MAGICBOWBONUS);
		RANGEWEAPONINDEX = 3;
	};
};

func void unequip_bow_01()
{
	if(Npc_IsPlayer(self))
	{
		B_AddFightSkill(self,NPC_TALENT_BOW,-MAGICBOWBONUS);
		RANGEWEAPONINDEX = 0;
	};
};

func void equip_crossbow_01()
{
	if(Npc_IsPlayer(self))
	{
		B_AddFightSkill(self,NPC_TALENT_BOW,MAGICBOWBONUS);
		RANGEWEAPONINDEX = 4;
	};
};

func void unequip_crossbow_01()
{
	if(Npc_IsPlayer(self))
	{
		B_AddFightSkill(self,NPC_TALENT_BOW,-MAGICBOWBONUS);
		RANGEWEAPONINDEX = 0;
	};
};

func void equip_holybow()
{
	if(Npc_IsPlayer(self))
	{
		Wld_PlayEffect("spellFX_HealShrine",hero,hero,0,0,0,FALSE);
		RANGEWEAPONINDEX = 4;
	};
};

func void unequip_holybow()
{
	if(Npc_IsPlayer(self))
	{
		Wld_PlayEffect("spellFX_HealShrine",hero,hero,0,0,0,FALSE);
		RANGEWEAPONINDEX = 0;
	};
};

func void equip_1h_light()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 1;
	};
};

func void equip_1h_medium()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 2;
	};
};

func void equip_1h_heavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 3;
	};
};

func void equip_1h_veryheavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 4;
	};
};

func void equip_1h_superheavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 6;
	};
};

func void equip_2h_light()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 2;
	};
};

func void equip_2h_medium()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 3;
	};
};

func void equip_2h_heavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 5;
	};
};

func void equip_2h_veryheavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 6;
	};
};

func void equip_2h_superheavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 8;
	};
};

func void unequip_1h_light()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_1h_medium()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_1h_heavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_1h_veryheavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_1h_superheavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_2h_light()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_2h_medium()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_2h_heavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_2h_veryheavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void unequip_2h_superheavy()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
	};
};

func void equip_bow_light()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 1;
	};
};

func void equip_bow_medium()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 2;
	};
};

func void equip_bow_heavy()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 3;
	};
};

func void equip_bow_veryheavy()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 4;
	};
};

func void equip_crossbow_light()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 2;
	};
};

func void equip_crossbow_medium()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 3;
	};
};

func void equip_crossbow_heavy()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 4;
	};
};

func void equip_crossbow_veryheavy()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 5;
	};
};

func void unequip_bow_light()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 0;
	};
};

func void unequip_bow_medium()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 0;
	};
};

func void unequip_bow_heavy()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 0;
	};
};

func void unequip_bow_veryheavy()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 0;
	};
};

func void unequip_crossbow_light()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 0;
	};
};

func void unequip_crossbow_medium()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 0;
	};
};

func void unequip_crossbow_heavy()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 0;
	};
};

func void unequip_crossbow_veryheavy()
{
	if(Npc_IsPlayer(self))
	{
		RANGEWEAPONINDEX = 0;
	};
};

func void equip_1h_simpleblack()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 3;
		SIMPLEBLACK_1H_ONME = TRUE;
	};
};

func void unequip_1h_simpleblack()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
		SIMPLEBLACK_1H_ONME = FALSE;
	};
};

func void equip_2h_simpleblack()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 3;
		SIMPLEBLACK_2H_ONME = TRUE;
	};
};

func void unequip_2h_simpleblack()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 0;
		SIMPLEBLACK_2H_ONME = FALSE;
	};
};

func void equip_blessedblack_magic()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 1;
		if(NETBEKLEADME_STEP1DONE == FALSE)
		{
			AI_PlayAni(hero,"S_FIRE_VICTIM");
			Wld_PlayEffect("VOB_MAGICBURN",hero,hero,0,0,0,FALSE);
			B_Say(hero,hero,"$Dead");
			AI_StopFX(hero,"VOB_MAGICBURN");
			Npc_ChangeAttribute(hero,ATR_HITPOINTS,-hero.attribute[ATR_HITPOINTS_MAX]);
			Npc_StopAni(hero,"S_FIRE_VICTIM");
			MELEEWEAPONINDEX = 0;
		};
	};
};

func void unequip_blessedblack_magic()
{
	if(Npc_IsPlayer(self))
	{
		MELEEWEAPONINDEX = 1;
		if(NETBEKLEADME_STEP1DONE == FALSE)
		{
			AI_PlayAni(hero,"S_FIRE_VICTIM");
			Wld_PlayEffect("VOB_MAGICBURN",hero,hero,0,0,0,FALSE);
			B_Say(hero,hero,"$Dead");
			AI_StopFX(hero,"VOB_MAGICBURN");
			Npc_ChangeAttribute(hero,ATR_HITPOINTS,-hero.attribute[ATR_HITPOINTS_MAX]);
			Npc_StopAni(hero,"S_FIRE_VICTIM");
			MELEEWEAPONINDEX = 0;
		};
	};
};

